package com.yonyou.brigade.basic_init.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuexmf
 * @since 2020-04-22
 */
@TableName("bri_channel_base")
public class BriChannelBase extends Model<BriChannelBase> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商旅系统代码
     */
    @TableField("channel_code")
    private String channelCode;
    /**
     * 商旅系统名称
     */
    @TableField("channel_name")
    private String channelName;
    /**
     * 配置字段
     */
    private String config;
    /**
     * 结算配置
     */
    @TableField("account_config")
    private String accountConfig;
    /**
     * 开户模式
     */
    private String model;
    /**
     * 填写说明
     */
    private String instruction;
    /**
     * 是否启用
     */
    private Integer valid;
    /**
     * 是否启用
     */
    @TableField("sequence")
    private Integer sequence;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getAccountConfig() {
        return accountConfig;
    }

    public void setAccountConfig(String accountConfig) {
        this.accountConfig = accountConfig;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getInstruction() {
        return instruction;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String CHANNEL_CODE = "channel_code";

    public static final String CHANNEL_NAME = "channel_name";

    public static final String CONFIG = "config";

    public static final String ACCOUNT_CONFIG = "account_config";

    public static final String MODEL = "model";

    public static final String INSTRUCTION = "instruction";

    public static final String VALID = "valid";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriChannelBase{" +
        "id=" + id +
        ", channelCode=" + channelCode +
        ", channelName=" + channelName +
        ", config=" + config +
        ", accountConfig=" + accountConfig +
        ", model=" + model +
        ", instruction=" + instruction +
        ", valid=" + valid +
        ", sequence=" + sequence +
        ", ts=" + ts +
        "}";
    }
}
